home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form datarate
- BackColor = &H00C0C0C0&
- BorderStyle = 3 'Fixed Double
- Caption = "Data Sample Rate"
- ClientHeight = 2535
- ClientLeft = 1095
- ClientTop = 1485
- ClientWidth = 4845
- ControlBox = 0 'False
- Height = 2940
- Left = 1035
- LinkMode = 1 'Source
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 2535
- ScaleWidth = 4845
- Top = 1140
- Width = 4965
- Begin SSPanel SSPanel1
- AutoSize = 3 'AutoSize Child To Panel
- BevelInner = 1 'Inset
- BevelWidth = 2
- ForeColor = &H00000000&
- Height = 615
- Left = 840
- TabIndex = 0
- Top = 1800
- Width = 3015
- Begin CommandButton Command1
- Cancel = -1 'True
- Caption = "O.K."
- Height = 405
- Left = 105
- TabIndex = 1
- Top = 105
- Width = 2805
- End
- End
- Begin TextBox ti
- Height = 375
- Left = 2400
- TabIndex = 7
- Top = 1320
- Width = 2175
- End
- Begin TextBox mr
- Height = 375
- Left = 2400
- TabIndex = 6
- Top = 840
- Width = 2175
- End
- Begin TextBox pps
- Height = 375
- Left = 2400
- TabIndex = 5
- Top = 360
- Width = 2175
- End
- Begin SSPanel SSPanel2
- AutoSize = 3 'AutoSize Child To Panel
- BevelInner = 1 'Inset
- BevelWidth = 2
- ForeColor = &H00000000&
- Height = 735
- Left = 120
- TabIndex = 8
- Top = 120
- Width = 735
- Begin PictureBox Picture1
- Height = 525
- Left = 105
- Picture = DATARATE.FRX:0000
- ScaleHeight = 495
- ScaleWidth = 495
- TabIndex = 9
- Top = 105
- Width = 525
- End
- End
- Begin Label Label5
- AutoSize = -1 'True
- BackColor = &H00C0C0C0&
- Caption = "Current Time Interval"
- Height = 195
- Left = 480
- TabIndex = 4
- Top = 1320
- Width = 1800
- End
- Begin Label Label3
- AutoSize = -1 'True
- BackColor = &H00C0C0C0&
- Caption = "Min Rate"
- Height = 195
- Left = 1560
- TabIndex = 3
- Top = 840
- Width = 780
- End
- Begin Label Label1
- AutoSize = -1 'True
- BackColor = &H00C0C0C0&
- Caption = "Points P/Sec."
- Height = 195
- Left = 1080
- TabIndex = 2
- Top = 360
- Width = 1200
- End
- Dim mrate As Single
- Sub Command1_Click ()
- If Val(pps.text) > mrate Then
- Beep
- pps.text = Str$(mrate)
- MsgBox "Sample Rate Too Large", 48, "Orbital"
- Exit Sub
- End If
- planet.text7.text = ti.text
- samplerate = Val(pps.text)
- datarate.Hide
- Unload datarate
- End Sub
- Sub Form_Load ()
- ti.text = planet.text7.text
- mrate = (1 / Val(ti.text)) / 20
- mr.text = Str$(mrate) + " Points p/s"
- pps.text = Str$(mrate)
- If ti.text = "" Then
- MsgBox "Please enter a Time Interval", 48, "Orbital"
- Exit Sub
- End If
- End Sub
-